import LgbtableDetail from "./../../../controls/detail/lgbtable";
import LgbanalyDetail from "./../../../controls/detail/lgbanaly";
import TabService from "./../../tabservice";

class NoticeService extends TabService {
	defaultData() {
		let info = {
			link: "",
			tabs: [
				{
					name: "离退休干部信息",
					active: true,
					type: LgbtableDetail
				},
				{
					name: "统计分析",
					active: false,
					type: LgbanalyDetail
				}
			]
		};
		this.setTabs(info.tabs);
		return info;
	}

	onupdate(current, data) {
		Object.assign(current, data);
	}
}

export default NoticeService;